#include <iostream>
using namespace std;

typedef long long LL;

int main()
{
	LL sum = 7385137888721L * 4 + 10470245L;

	cout << sum << endl;

	for (LL i = 1; ; i++)
	{
		if (i * i >= sum)
		{
			cout << i - 1 << endl;
			break;
		}
	}

	return 0;
}